A: To get the menu id of the main menu you do this:\
\f3\fs24 [NXApp mainMenu]\
\
\f2\fs28 There is no direct way to find the id of other menus unless you know the menu cell which corresponds to the menu in question. Then you can use the ActionCell method
\f3\fs24 target
\f2\fs28 which will return the target of the cell, i.e. its menu id. This method can be used to find any menu id. It is especially useful for finding the id of a submenu.\